//
//  QQFriendTableViewCell.m
//  练习tableView
//
//  Created by brother on 16/2/18.
//  Copyright © 2016年 brother. All rights reserved.
//

#import "QQFriendTableViewCell.h"
#import "QQFriend.h"

#import "UIImageView+WebCache.h"
@interface QQFriendTableViewCell()
@property (weak, nonatomic) IBOutlet UIImageView *myTableView;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;


@end
@implementation QQFriendTableViewCell

+ (instancetype)friendCellWithTableView:(UITableView *)tableView {
    static NSString *cellInfo = @"cell";
    QQFriendTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellInfo];
    return cell;
}

- (void)setFriendModel:(QQFriend *)friendModel {
    _friendModel = friendModel;
    self.nameLabel.text = friendModel.name;
    self.myTableView.image = [UIImage imageNamed:friendModel.icon];
}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
